#include <iostream>
#include "ivstate.h"
#include <list>
#include <fstream>

using namespace std;

int main()
{

    IVTState i;
    i.iniWay();//初始化
    while(true){
        int result = i.changeState();
        ofstream fout;
        if(result == 6){
            cout<<"\n\nbye...";
            fout.open("information.txt",ios::app);
            fout<<"bye...";
            fout.close();
            break;
        }
    }

    return 0;
}
